<#assign menu="usereventspage">
<#include "/system/head.ftl">
<style type="text/css">
.pagination {
    border-radius: 4px;
    display: inline-block;
    margin: 0;
    padding-left: 0;
}
</style>
	<!--main content start-->
	<section id="main-content">
		<section class="wrapper">
        	<!-- page start-->
            <section class="panel">
            	<header class="panel-heading">
               		 所有用户活动
                </header>
                <div class="panel-body">
                	<div class="adv-table">
                    	<div role="grid" class="dataTables_wrapper" id="hidden-table-info_wrapper">
                            <table class="table table-striped table-advance table-hover">
                            	<thead>
                                	<tr>
                						<th>活动图片</th>
                						<th>活动title</th>
                						<th>活动地址</th>
                						<th>人均消费</th>
                					
                						<th>收藏人数</th>
                					    <th>评论人数</th>
                					    <th>参加人数</th>
                					    <th>操作</th>
              						</tr>
                                </thead>
                            	<tbody role="alert" aria-live="polite" aria-relevant="all">
                            		<#list pageVo.list as e>
                            		<tr class="gradeA odd">
                  							<td><img src="http://etimages.oss-cn-hangzhou.aliyuncs.com/upload/${e.pic}"  width="100px" height="100px"/></td>
                  						<td>${e.title}</td>
                  						<td>${e.address}</td>
                  						<td>${e.perCapita}</td>
                  						<td>${e.priaseNum}</td>
                  						<td>${e.commentNum}</td>
                  						<td>${e.joinNum}</td>
                  						<td><a class="js_delete_rewards" href="javascript:void(0);" uid="${e.id}"  title="删除">
                  								删除
                  						</a></td>
                  						
                                	</tr>
                                	</#list>
                               	</tbody>
                              </table>
                              <div style="height: 30px;">
                             	<div class="pagination">${pageVo.pageNumHtml} </div>
                              </div>
                           </div>
                        </div>
                  </div>
              </section>
              <!-- page end-->
          </section>
		</section>
		<!--main content end-->
<script>
$(function(){
	$(".js_userId").hide();
});

$('.js_delete_rewards').click(function(){
	   var uid = $(this).attr('uid');
		bootbox.dialog({
			message : "是否"+$(this).attr('title'),
			title : "提示",
			buttons : {
				"delete" : {
					label : "确定",
					className : "btn-success",
					callback : function() {
						$.get("${basePath}/admin/event/delete.json", { "eventId": uid},function(data){
								window.location.reload();
						});
					}
				},
				"cancel" : {
					label : "取消",
					className : "btn-primary",
					callback : function() {
					
					}
				}
			}
		});					
	});			
	
</script>
<#include "/system/foot.ftl">
